by mistake

Erroneously, as in He took my coat by mistake. [ c. 1700 ]